package com.up.management.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.up.common.annotation.Excel;
import com.up.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 申请管理对象 ich_event_application
 * 
 * @author ruoyi
 * @date 2025-10-11
 */
public class EventApplication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 申请ID */
    @Excel(name = "申请ID")
    private Long id;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String eventName;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 申请人ID */
    @Excel(name = "申请人ID")
    private Long userid;

    /** 申请人用户名 */
    private String username;

    /** 所属分类ID */
    @Excel(name = "所属分类ID")
    private Long categoryId;

    /** 所属地区ID */
    @Excel(name = "所属地区ID")
    private Long regionId;

    /** 分类名称（联表显示用） */
    private String categoryName;

    /** 地区名称（联表显示用） */
    private String regionName;

    /** 活动地址 */
    @Excel(name = "活动地址")
    private String location;

    /** 主办方 */
    @Excel(name = "主办方")
    private String organizer;

    /** 活动简介 */
    @Excel(name = "活动简介")
    private String introduction;

    /** 封面图片 */
    @Excel(name = "封面图片")
    private String coverImage;

    /** 详情内容 */
    private String detailContent;

    /** 详情图片 */
    private String detailImages;

    /** 申请状态 */
    @Excel(name = "申请状态")
    private Long applyStatus;

    /** 审核备注 */
    @Excel(name = "审核备注")
    private String reviewRemark;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间 */
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setEventName(String eventName) 
    {
        this.eventName = eventName;
    }

    public String getEventName() 
    {
        return eventName;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }

    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getRegionName() 
    {
        return regionName;
    }

    public void setRegionName(String regionName) 
    {
        this.regionName = regionName;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setOrganizer(String organizer) 
    {
        this.organizer = organizer;
    }

    public String getOrganizer() 
    {
        return organizer;
    }

    public void setIntroduction(String introduction) 
    {
        this.introduction = introduction;
    }

    public String getIntroduction() 
    {
        return introduction;
    }

    public void setCoverImage(String coverImage) 
    {
        this.coverImage = coverImage;
    }

    public String getCoverImage() 
    {
        return coverImage;
    }

    public void setDetailContent(String detailContent) 
    {
        this.detailContent = detailContent;
    }

    public String getDetailContent() 
    {
        return detailContent;
    }

    public void setDetailImages(String detailImages) 
    {
        this.detailImages = detailImages;
    }

    public String getDetailImages() 
    {
        return detailImages;
    }

    public void setApplyStatus(Long applyStatus) 
    {
        this.applyStatus = applyStatus;
    }

    public Long getApplyStatus() 
    {
        return applyStatus;
    }

    public void setReviewRemark(String reviewRemark) 
    {
        this.reviewRemark = reviewRemark;
    }

    public String getReviewRemark() 
    {
        return reviewRemark;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("eventName", getEventName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("userid", getUserid())
            .append("categoryId", getCategoryId())
            .append("regionId", getRegionId())
            .append("categoryName", getCategoryName())
            .append("regionName", getRegionName())
            .append("location", getLocation())
            .append("organizer", getOrganizer())
            .append("introduction", getIntroduction())
            .append("coverImage", getCoverImage())
            .append("detailContent", getDetailContent())
            .append("detailImages", getDetailImages())
            .append("applyStatus", getApplyStatus())
            .append("reviewRemark", getReviewRemark())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
